package com.turing.draw.vo.in;

import com.alibaba.fastjson.JSONArray;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
public class OcrResultBO implements Serializable {

    private int pageEndIndex;

    private String docID;

    private int pageNo;

    private int pageStartIndex;

    private List<Paragraph> paragraphs;


    @Data
    public static class Paragraph implements Serializable {

        private String paraId;

        private int paraNo;

        private List<Line> lines;

    }

//    private int pageEndIndex;

    @Data
    public static class Line implements Serializable {

        private int sortNo;

        private String rowNo;

        private int lineNo;

        private int lineEndIndex;

        private String objContent;

        private int lineStartIndex;

        private String lineId;

        private JSONArray objPos;

        private String objType;

        private List<Cell> cells;

        private String objTypePostpreprocess;

        private String tableId;

        private String templateId;

    }
    @Data
    public static class Cell implements Serializable {

        private int lineNo;

        private JSONArray rowStartEnd;

        private String objContent;

        private JSONArray colStartEnd;

        private String lineId;

        private JSONArray objPos;

        private String objType;
    }
}

